You are here: How To Guides > Installing Solr > Installing Java on Your Web Server

 

Installing Java on Your Web Server

Solr requires Java in order to run correctly. As such, you will need to verify that Java is installed on your web server before you install Solr. If Java is not already installed on your web server, you can find instructions for installing it at the following link: https://java.com/en/download/help/download_options.xml

Solr will not start if it doesn’t have network access or can’t find Java. Once you have installed Java, perform the following checks to ensure that Java has access to the network.

To Enable Java to Access the Network

  1. Open the Java Control Panel. On Windows 10, you can access this by launching the Configure Java desktop app.

  1. Click Network Settings.

  1. Ensure the settings are correct for your server environment.

The least restrictive setting is Direct connection.

  1. Click OK.

To Configure Your Server Environment to Find Java

  1. Open the Windows System Properties. On Windows 10, you can type “environment” in the search field of your task bar and choose Edit the system environment variables from the Best Match group.

  1. Click Environment Variables.

  1. In the System variables list, locate the JAVA_HOME environment variable.
  2. Verify the Value column contains the correct directory for the Java installation.
  3. If the variable does not exist, click New to create it.

Next Step

Install version 5.4.1 of Apache Solr